<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/js/ajaxfileupload.js"></script>
<style type="text/css">
  .w240{width: 240px;}
  .sml-240{padding-left: 240px;}
</style>


<div id="content" class="">
        <div class="row">
          <div class="col-md-12">
            <!-- Input Fields -->
            <div class="panel">
              <div class="panel-heading">
                <span class="panel-title">{$acname}</span>
              </div>
              <div class="admin-form theme-primary mw1000 center-block" style="padding-bottom: 175px; margin-top:30px;">
              <div class="panel heading-border panel-primary">
                <form method="post" action="{$posturl}"  >
                  <div class="panel-body bg-light">
                    <div class="section-divider mt20 mb40"><span> 信息项 </span></div>
                    <!-- .section-divider -->
                    <input type="hidden" value="{$data['lid']}" name="lid">
                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="title" id="title" class="gui-input" placeholder="此处输入标题：必填" value="{$data['title']}">
                        </label>
                        <label  class="button btn-primary w240" >友情链接名称：</label>
                      </div>
                    </div>

                   <!--<div class="row">
                      <div class="col-md-6">
                        <div class="section">
                           <span class="fileupload-preview thumbnail m5 pull-left">
                            <img src="{$data['images']}" class="img-responsive" id="slt" title="stairs-to_soul.jpg">
                          </span>
                        </div>
                      </div>
                      <div class="col-md-6 hidden-xs">
                        <div class="section">
                          <span >友链图片</span>
                          <label class="field prepend-icon append-button file">

                            <span class="button btn-primary">选择文件</span>
                            <input type="file" class="gui-file" style="width:0px;" name="file2" id="file2" onchange=" ajaxuploadImg('file2','uploader2','{:U('Ajax/uploadImg')}','slt');">
                            <input type="text" class="gui-input" name="images" id="uploader2"  value="{$data['images']}">
                            <label class="field-icon"><i class="fa fa-upload"></i></label>
                          </label>
                        </div>
                      </div>
                    </div>-->

                  
                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="url" id="url" class="gui-input" placeholder="此处输入控制器名：必填" value="{$data['url']}">
                        </label>
                        <label  class="button btn-primary w240" >目标URL：</label>
                      </div>
                    </div>
                    
                     <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        
                     
                        
                        <label class="block switch switch-primary">
                           
                            <span  style="position: relative;top: -5px; font-size: 18px;">友链状态：</span>
                             <input type="checkbox" name="status" id="t1" value="1" <?php if($data['status']){ echo "checked" ;} ?>>
                            <label for="t1" data-on="开启" data-off="关闭"></label>
                        </label>
                        
                        
                        
                      </div>
                      
                    </div>
                    
                </div>
                   
                  <div class="panel-footer text-right">
                    <button type="submit" class="button btn-primary">提交</button>
                    <button type="reset" class="button btn-primary">清空</button>
                  </div>
                  <!-- end .form-footer section -->
                </form>

              </div>

            </div>
            </div>
          </div>
        </div>
</div>